# -*- coding;utf-8 -*-
"""
File name : MyPage.PY
Program IDE : PyCharm
Create file time: 2023/5/17 10:16
File Create By Author : 朱清闯
"""
from rest_framework.pagination import PageNumberPagination


class MyPage(PageNumberPagination):
    page_size = 50
    max_page_size = 100
    page_size_query_param = 'size'
    page_query_param = 'page'


class SmallPage(PageNumberPagination):
    page_size = 10
    page_size_query_param = 'size'
    max_page_size = 100
    page_query_param = 'page'


class BigPage(PageNumberPagination):
    page_size = 100
    page_size_query_param = 'size'
    max_page_size = 200
    page_query_param = 'page'


class MiniPage(PageNumberPagination):
    page_size = 5
    page_size_query_param = 'size'
    max_page_size = 10
    page_query_param = 'page'
